package cn.hncu.booksManagementSystem.book.vo;

import java.io.Serializable;
/**
 *
 * Description:
 *	图书模块值对象
 */
public class BookModel implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String id; //图书标识
	private String name; //图书名称
	private double inPrice; //图书进价
	private double outPrice; //图书售价
    private String bookPublish; //出版社

	public BookModel() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getInPrice() {
		return inPrice;
	}

	public void setInPrice(double inPrice) {
		this.inPrice = inPrice;
	}

	public double getOutPrice() {
		return outPrice;
	}

	public void setOutPrice(double outPrice) {
		this.outPrice = outPrice;
	}

	
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BookModel other = (BookModel) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

    public String getBookPublish() {
        return bookPublish;
    }

    public void setBookPublish(String bookPublish) {
        this.bookPublish = bookPublish;
    }

	@Override
	public String toString() {
		return id + ", 《" + name + "》, 进价：" + inPrice + ", 售价：" + outPrice + ", 出版社：" + bookPublish ;
	}
	
	
	
}
